﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>print</title>
</head>
<body>
    <div style="width:920px;">
        <p style="font-size: 15pt; font-weight: bold; margin: 0px; text-align: center;">THÔNG TIN BẢNG KÊ</p>
        <br />
        <table border=1 cellspacing=0 cellpadding=0 style='border-collapse:collapse;border:none; width:100%;'>
            <tr>
                <td valign=top style='width:20pt;border:solid windowtext 1.0pt; padding:3pt 5.4pt 3pt 5.4pt; text-align:center; font-weight:bold;'>
                    STT
                </td>
                <td valign=top style='border:solid windowtext 1.0pt; padding:3pt 5.4pt 3pt 5.4pt; text-align:center; font-weight:bold;'>
                    Số hộ
                </td>
                <td valign=top style='border: solid windowtext 1.0pt; border-left: none; padding: 3pt 5.4pt 3pt 5.4pt; font-weight: bold;'>
                    Tên chủ hộ
                </td>
                <td valign=top style='border: solid windowtext 1.0pt; border-left: none; padding: 3pt 5.4pt 3pt 5.4pt; font-weight: bold;'>
                    Địa bàn
                </td>
                <td valign=top style='border:solid windowtext 1.0pt; padding:3pt 5.4pt 3pt 5.4pt; text-align:center; font-weight:bold;'>
                    Số nhân khẩu
                </td>
                <td valign=top style='border: solid windowtext 1.0pt; border-left: none; padding: 3pt 5.4pt 3pt 5.4pt; font-weight: bold;'>
                    Số điện thoại
                </td>
                <td valign=top style='border: solid windowtext 1.0pt; border-left: none; padding: 3pt 5.4pt 3pt 5.4pt; font-weight: bold;'>
                    Email
                </td>
                <td valign=top style='border:solid windowtext 1.0pt; padding:3pt 5.4pt 3pt 5.4pt; text-align:center; font-weight:bold;'>
                    Địa chỉ
                </td>
                <td valign=top style='border:solid windowtext 1.0pt; padding:3pt 5.4pt 3pt 5.4pt; text-align:center; font-weight:bold;'>
                    Vĩ độ
                </td>
                <td valign=top style='border:solid windowtext 1.0pt; padding:3pt 5.4pt 3pt 5.4pt; text-align:center; font-weight:bold;'>
                    Kinh độ
                </td>
                <td valign=top style='border:solid windowtext 1.0pt; padding:3pt 5.4pt 3pt 5.4pt; text-align:center; font-weight:bold;'>
                    Tọa độ tâm
                </td>
                <td valign=top style=';border:solid windowtext 1.0pt; padding:3pt 5.4pt 3pt 5.4pt; text-align:center; font-weight:bold;'>
                    Phương thức điều tra
                </td>
                <td valign=top style='border: solid windowtext 1.0pt; border-left: none; padding: 3pt 5.4pt 3pt 5.4pt; font-weight: bold;'>
                    Trạng thái
                </td>
            </tr>
            @{
                int i = 0;
                foreach (DHQGHN.PM2.ViewModels.BangKeViewModel h in ViewBag.rows)
                {
                    ++i;
                    <tr>
                        <td valign=top style='border: solid windowtext 1.0pt; padding: 3pt 5.4pt 3pt 5.4pt; text-align: center;'>
                            @i
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.HOUSEHOLD_NUMBER
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.HOUSEHOLD_NAME
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.AREA_NAME
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.NUM_OF_HH_MEMBER
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.HH_HEAD_MOBILE
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.HH_HEAD_EMAIL
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.ADDRESS_DETAILS
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.GPS_LATITUDE
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.GPS_LONGITUDE
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.GPS_ACCURACY
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @h.SURVEY_METHOD_NAME
                        </td>
                        <td valign=top style='border:solid windowtext 1.0pt; border-left:none;padding:3pt 5.4pt 3pt 5.4pt'>
                            @if (h.ONLINE_SURVEY_STATUS == "0"){
                                <span>Chưa hoàn thành</span>
                            }
                            else
                            {
                                <span>Đã hoàn thành</span>
                            }
                        </td>
                    </tr>
                }
            }
        </table>
    </div>
    <script type="text/javascript">
        window.print();
    </script>
</body>
</html>
